home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
autofx
/
eot_scatter.ifx.pre
< prev
next >
Wrap
Text File
|
2004-08-03
|
2KB
|
77 lines
/*
* $VER: EOT_Scatter.ifx.pre 2.6 (17.09.97)
* Copyright © 1992-1996 Nova Design, Inc.
*
* Written by Gregg William Riedel
* Scatter version by Andrew Folkins
*
* Scatter
*
* Inputs:
* Word(Arg(1),1) = Sequence number (?)
* Word(Arg(1),2) = Total number of frames (N)
*
* Returns:
* 0 if successful, non-zero on failure
*
*/
OPTIONS RESULTS
base = 'Autofx_Scatter_'
celsize = GETCLIP(base||'CelSize')
rand = GETCLIP(base||'Rand')
tmin = GETCLIP(base||'ThreshMin')
tmax = GETCLIP(base||'ThreshMax')
source = GETCLIP(base||'Source')
type = GETCLIP(base||'Type')
x = GETCLIP(base||'X')
y = GETCLIP(base||'Y')
dmin = GETCLIP(base||'DisplaceMin')
dmax = GETCLIP(base||'DisplaceMax')
angle = GETCLIP(base||'Angle')
IF celsize = "" THEN celsize = 1
IF rand = "" THEN rand = 1234
IF tmin = "" THEN tmin = 0
IF tmax = "" THEN tmax = 255
IF source = "" THEN source = 3
IF type = "" THEN type = 1
IF x = "" THEN x = 160
IF y = "" THEN y = 100
IF dmin = "" THEN dmin = 0
IF dmax = "" THEN dmax = 100
IF angle = "" THEN angle = 270
Gadget.1 = 'INTEGER 130 5 50 14 "Cel Size:"' celsize
Gadget.2 = 'INTEGER 270 5 50 14 "Rand Seed:"' rand
Gadget.3 = 'INTEGER 130 20 50 14 "Threshold Min:"' tmin
Gadget.4 = 'INTEGER 270 20 50 14 "Max:"' tmax
Gadget.5 = 'INTEGER 130 35 50 14 "X:"' x
Gadget.6 = 'INTEGER 270 35 50 14 "Y:"' y
Gadget.7 = 'CYCLE 130 50 190 14 "Source:"' source '"Swap Buffer/Exchange/Black/White/Drawcolor"'
Gadget.8 = 'CYCLE 130 65 190 14 "Type:"' type '"Radial In/Radial Out/Linear/Swirl In/Swirl Out"'
Gadget.9 = 'INTEGER 130 80 50 14 "Displacement Min:"' dmin
Gadget.10 = 'INTEGER 270 80 50 14 "Max:"' dmax
Gadget.11 = 'INTEGER 130 95 50 14 "Angle:"' angle
Gadget.12 = 'END'
NewComplexRequest '"Scatter Sequence"' Gadget 330 115
IF rc ~= 0 THEN EXIT rc
CALL SETCLIP(base||'CelSize', result.1)
CALL SETCLIP(base||'Rand', result.2)
CALL SETCLIP(base||'ThreshMin', result.3)
CALL SETCLIP(base||'ThreshMax', result.4)
CALL SETCLIP(base||'X', result.5)
CALL SETCLIP(base||'Y', result.6)
CALL SETCLIP(base||'Source', result.7)
CALL SETCLIP(base||'Type', result.8)
CALL SETCLIP(base||'DisplaceMin', result.9)
CALL SETCLIP(base||'DisplaceMax', result.10)
CALL SETCLIP(base||'Angle', result.11)
EXIT